package ssm.blog.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import ssm.blog.dao.PictureDao;
import ssm.blog.entity.BlogType;
import ssm.blog.entity.Picture;
import ssm.blog.service.PictureService;

/**
 * @Description 相册Service实现类
 * @author ZeusML
 *
 */
@Service("pictureService")
public class PictureServiceimpl implements PictureService{

	@Resource
	private PictureDao pictureDao;
	
	@Override
	public List<Picture> listPicture(Map<String, Object> map) {
		return this.pictureDao.listPicture(map);
	}

	@Override
	public Long getTotal() {
		return this.pictureDao.getTotal();
	}

	@Override
	public void deletePicture(int id) {
		this.pictureDao.deletePicture(id);
	}

	@Override
	public int addPicture(Picture picture) {
		return this.pictureDao.addPicture(picture);
	}

}
